Skip to content

ci(release): CycloneDX SBOM + sha256 sidecar as release assets, build-provenance attestations - #878

Merged
ronaldtse merged 1 commit into
mainfrom
sbom/cyclonedx-release-assets
Nov 24, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
sbom/cyclonedx-release-assets

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Org supply-chain layer (SOTA-2027 trust surface): every tag release now emits a CycloneDX 1.6 JSON SBOM and attaches it with a .sha256 sidecar (house sidecar pattern) to the GitHub release for the pushed tag, alongside gh attestation-compatible build provenance for the gem + SBOM.
  • Emitter: syft (pinned v1.57.2, official install script) in file-source mode over the workspace Gemfile.lock — deterministic and rooted inside the checkout. The lockfile already exists at this point (bundler-cache materializes it; the Gemfile's conditional ../maps path dep falls back to the registry on runners).
  • cyclonedx-ruby gem was evaluated and rejected: v1.1.0 emits only legacy CycloneDX 1.1 XML (and needs nokogiri/rest_client + network metadata fetches) — unusable for the org-wide CycloneDX JSON standard.
  • Attest step is continue-on-error; post-publish steps never gate rubygems.org publishing (OIDC trusted publishing untouched). Versions NOT bumped.
  • New: the workflow now creates the GitHub release for the pushed tag (release-gem@v1 does not create one — no v3.x GH releases exist today).

Local verification

syft Gemfile.lock --source-name interscript --source-version 3.8.0 -o [email protected]=... on an isolated fresh checkout: spec 1.6, root interscript 3.8.0, 112 gem components, all locations rooted at /Gemfile.lock.

Test plan

  • YAML parses (verified locally)
  • Next tag push: SBOM + sidecar attached to the tag release; gh attestation list shows gem + SBOM provenance

…nce attestations

Org supply-chain layer: every tag release now emits CycloneDX 1.6 JSON via
syft (file-source mode over the workspace Gemfile.lock that bundler-cache
materializes), names it interscript-<version>.cdx.json, attaches it with a
.sha256 sidecar to the GitHub release for the pushed tag, and attests the
gem + SBOM via actions/attest-build-provenance (continue-on-error). syft
replaces the cyclonedx-ruby gem, which only writes legacy CycloneDX 1.1
XML. Post-publish steps never gate rubygems.org publishing. Versions not
bumped.
@ronaldtse
ronaldtse merged commit f326be1 into main Nov 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant